﻿local addonName, ns = ...
local app = LibStub("AceAddon-3.0"):NewAddon('!test', "AceEvent-3.0", "AceConsole-3.0")


local _G = getfenv(0)
local GetItemCount	= _G.GetItemCount
local GetItemIcon	= _G.GetItemIcon
local GetItemInfo	= _G.GetItemInfo
local GetSpellInfo	= _G.GetSpellInfo

local item = '33448'

local count = GetItemCount(item, false)
local info = GetItemInfo(item)


-- 查看背包数量
local bankcount = GetItemCount(item, true) - count
if count + bankcount > 0 then
    print('你有', count..(bankcount > 0 and (" (+"..bankcount..")") or ""))
end

print('---->', count, info)

-- tex:SetTexture(P.TextureTable[index].texture)

local Texture = "Interface\\Addons\\"..addonName.."\\Media\\Texture\\"
print(Texture)
local LSM = LibStub("LibSharedMedia-3.0")

-- 风行丨GG @ NGA
LSM:Register("statusbar", "FXGG_1", [[Interface\Addons\NDui_Plus\Media\Statusbar\FX_001.tga]])
LSM:Register("statusbar", "FXGG_2", [[Interface\Addons\NDui_Plus\Media\Statusbar\FX_002.tga]])
LSM:Register("statusbar", "FXGG_3", [[Interface\Addons\NDui_Plus\Media\Statusbar\FX_003.tga]])
LSM:Register("statusbar", "FXGG_4", [[Interface\Addons\NDui_Plus\Media\Statusbar\FX_004.tga]])
-- houshuu
LSM:Register("statusbar", "Wind_1", [[Interface\Addons\NDui_Plus\Media\Statusbar\WindTools_1.tga]])
LSM:Register("statusbar", "Wind_2", [[Interface\Addons\NDui_Plus\Media\Statusbar\WindTools_2.tga]])
-- ElvUI
LSM:Register("statusbar", "ElvUI_1", [[Interface\Addons\NDui_Plus\Media\Statusbar\ElvUI_1.tga]])
LSM:Register("statusbar", "ElvUI_2", [[Interface\Addons\NDui_Plus\Media\Statusbar\ElvUI_2.tga]])
-- ElvUI_MerathilisUI
LSM:Register("statusbar", "mUI_1", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_1.tga]])
LSM:Register("statusbar", "mUI_2", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_2.tga]])
LSM:Register("statusbar", "mUI_3", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_3.tga]])
LSM:Register("statusbar", "mUI_4", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_4.tga]])
LSM:Register("statusbar", "mUI_5", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_5.tga]])
LSM:Register("statusbar", "mUI_6", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_6.tga]])
LSM:Register("statusbar", "mUI_7", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_7.tga]])
LSM:Register("statusbar", "mUI_8", [[Interface\Addons\NDui_Plus\Media\Statusbar\mUI_8.tga]])